﻿using Microsoft.CodeAnalysis.CSharp.Syntax;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UMLSynthesizer.LangAnalyzer.Statements;

namespace UMLSynthesizer.CSharpAnalyzer.Statements
{
    class CSharpLabeledStatement : CSharpStatementBase, ILabeledStatement
    {
        #region Constructor

        public CSharpLabeledStatement(LabeledStatementSyntax statementNode, IStatementBase parentStatement)
            : base(statementNode, parentStatement, null, StatementKinds.Labeled) { }

        #endregion

        #region Properties

        public string Identifier { get { return (statementNode as LabeledStatementSyntax).Identifier.ToString(); } }

        #endregion
    }
}
